package com.eastfair.venuebooking.dao;

import com.eastfair.boot.mapper.SuperMapper;
import com.eastfair.venuebooking.entity.Exhibition;

import feign.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * 展会
 * </p>
 *
 * @author linan
 * @date 2022-06-08
 */
@Repository
public interface ExhibitionMapper extends SuperMapper<Exhibition> {

    /**
     * selectExhibitionAndSpace
     * @return
     * @param exhibitionId
     */
    List<Map<String, Object>> selectExhibitionAndSpace(@Param("exhibitionId") Long exhibitionId);

    /**
     * 获取客户联系人姓名和电话
     * @param customerId
     * @return
     */
    Map<String, String> getCutomerContactsNameAndMobile(@Param("customerId") Long customerId);

    /**
     * 通过联系人名称查询客户id
     * @param keywords
     * @return
     */
    List<Long> getCustomerIdsByContactName(@Param("keywords")  String keywords);
}
